package com.ruoyi.supervise.collectcar.controller;

import com.ruoyi.common.constant.Constants;
import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.common.core.domain.model.LoginBody;
import com.ruoyi.supervise.collectcar.ro.GetCollectcarParam;
import com.ruoyi.supervise.collectcar.service.CollectCarService;
import com.ruoyi.supervise.collectcar.vo.GetCollectcarVo;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import javax.validation.Valid;

/**
 * @description:
 * @author: xly
 * @date: 2022-01-06
 */
@RestController
@RequestMapping("/supervise")
@Api(tags = "监管端---车辆考核")
public class CollectCarController {

    @Autowired
    private CollectCarService collectCarService;

    @GetMapping("/get-collectcar")
    @ApiOperation("车辆考核")
    public AjaxResult getCollectcar(@Valid GetCollectcarParam param)
    {
        return AjaxResult.success(collectCarService.getCollectcar(param));
    }
}
